import request from '@/utils/request'

// 查询大地保险预下单列表
export function listPreorder(query) {
  return request({
    url: '/dadi/preorder/list',
    method: 'get',
    params: query
  })
}

// 查询大地保险预下单详细
export function getPreorder(id) {
  return request({
    url: '/dadi/preorder/' + id,
    method: 'get'
  })
}

// 新增大地保险预下单
export function addPreorder(data) {
  return request({
    url: '/dadi/preorder',
    method: 'post',
    data: data
  })
}

// 修改大地保险预下单
export function updatePreorder(data) {
  return request({
    url: '/dadi/preorder',
    method: 'put',
    data: data
  })
}

// 删除大地保险预下单
export function delPreorder(id) {
  return request({
    url: '/dadi/preorder/' + id,
    method: 'delete'
  })
}

// 导出大地保险预下单
export function exportPreorder(query) {
  return request({
    url: '/dadi/preorder/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
